package com.zhiche.lisa.bms.dao.model.driver;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 车型分类表
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
@TableName("d_vehicle_classify")
public class VehicleClassify extends Model<VehicleClassify> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("vehicle_classify_id")
    private String vehicleClassifyId;
    /**
     * 车型TMS分类名称
     */
    @TableField("vehicle_classify_name")
    private String vehicleClassifyName;
    /**
     * 燃油类型主键
     */
    @TableField("fuel_type_id")
    private Integer fuelTypeId;
    /**
     * 油耗
     */
    @TableField("fuel_consumption")
    private BigDecimal fuelConsumption;
    /**
     * 启用/禁用状态
     */
    private Integer enable;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 创建人
     */
    private String creator;
    /**
     * 创建时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getVehicleClassifyId() {
        return vehicleClassifyId;
    }

    public void setVehicleClassifyId(String vehicleClassifyId) {
        this.vehicleClassifyId = vehicleClassifyId;
    }

    public String getVehicleClassifyName() {
        return vehicleClassifyName;
    }

    public void setVehicleClassifyName(String vehicleClassifyName) {
        this.vehicleClassifyName = vehicleClassifyName;
    }

    public Integer getFuelTypeId() {
        return fuelTypeId;
    }

    public void setFuelTypeId(Integer fuelTypeId) {
        this.fuelTypeId = fuelTypeId;
    }

    public BigDecimal getFuelConsumption() {
        return fuelConsumption;
    }

    public void setFuelConsumption(BigDecimal fuelConsumption) {
        this.fuelConsumption = fuelConsumption;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "VehicleClassify{" +
                ", id=" + id +
                ", vehicleClassifyId=" + vehicleClassifyId +
                ", vehicleClassifyName=" + vehicleClassifyName +
                ", fuelTypeId=" + fuelTypeId +
                ", fuelConsumption=" + fuelConsumption +
                ", enable=" + enable +
                ", createTime=" + createTime +
                ", creator=" + creator +
                ", updateTime=" + updateTime +
                "}";
    }
}
